package com.lagou.service.impl;

import com.lagou.dao.ArticleDao;
import com.lagou.dao.impl.ArticleDaoImpl;
import com.lagou.domain.Article;
import com.lagou.service.ArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ArticleServiceImpl implements ArticleService {

    @Autowired
    private ArticleDao articleDao;


    public List<Article> findAll() {
        return articleDao.findAll();
    }

    @Override
    public void save(Article article) {
        articleDao.save(article);
    }
}
